import { client } from 'apollo'

export const gqlQuery = (query, variables) => client
  .getClient()
  .query({ query, variables })
  .then(result => result.data)
export const gqlMutation = (mutation, variables) => client
  .getClient()
  .mutate({ mutation, variables })
  .then(result => result.data)
